Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Banner] Simplify header section #25

Merged
merged 4 commits into from
May 12, 2014
Merged

[Banner] Simplify header section #25

merged 4 commits into from
May 12, 2014

Conversation

fabiopelosin
Copy link
Member

This is about always having the usage section.

[Edit] Removed old screenshoots.

@orta
Copy link
Member

orta commented May 10, 2014

This feels awesome.

@fabiopelosin
Copy link
Member Author

This is a pull request because it changes the banner to always have an usage section. /c @alloy. The usage section now indicates wether a subcommand is required, optional (square brackets) or not available.

It also prettifies the description by colouring arguments and option flags, and wrapping the text. If the terminal is too wide a maximum width keeps the text readable.

Before

screen shot 2014-05-12 at 17 17 53
screen shot 2014-05-12 at 17 18 54

After

screen shot 2014-05-12 at 17 15 56
screen shot 2014-05-12 at 17 15 48
screen shot 2014-05-12 at 17 15 22
screen shot 2014-05-12 at 17 16 12

@alloy
Copy link
Member

alloy commented May 12, 2014

Looks amaze craze! 👍

@fabiopelosin
Copy link
Member Author

Ace!

fabiopelosin added a commit that referenced this pull request May 12, 2014
@fabiopelosin fabiopelosin merged commit a1e3bcb into master May 12, 2014
@fabiopelosin fabiopelosin deleted the experimental-usage branch May 12, 2014 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants